/*
 * 组件注释
 * @Author: machinist_wq
 * @Date: 2022-05-03 12:50:21
 * @LastEditors: machinist_wq
 * @LastEditTime: 2022-06-30 14:18:24
 * @Description: 样式控件
 * 人生无常！大肠包小肠......
 */
"use strict";
import React, { ReactElement } from "react";

const layoutBox =
  <P extends object>(WrappedComponent: React.ComponentType<P>) =>
  (props: JSX.IntrinsicAttributes): ReactElement =>
    (
      <div>
        <div
          style={{
            padding: "12px 20px",
            background: "#fff",
            borderRadius: "8px",
            overflow: "hidden",
          }}>
          <WrappedComponent {...(props as P)} />
        </div>
      </div>
    );

export default layoutBox;
